package com.ruoyi.wms.domain.bo.partolStore;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.partolStore.MaintenancePlan;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 保养方案档案业务对象 maintenance_plan
 *
 * @author 邓滔滔
 * @date 2024-11-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MaintenancePlan.class, reverseConvertGenerate = false)
public class MaintenancePlanBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 设备ID
     */
    @NotNull(message = "设备ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long equipmentId;

    /**
     * 设备类型
     */
    private String equipmentType;

    /**
     * 保养频率（单位：天）
     */
    private Long frequency;

    /**
     * 保养间隔时间
     */
    private Long intervalDays;

    /**
     * 下次保养日期
     */
    @NotNull(message = "下次保养日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date nextMaintenanceDate;

    /**
     * 保养项目
     */
    private String maintenanceItems;

    /**
     * 责任人ID
     */
    @NotNull(message = "责任人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long responsiblePersonId;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    private String notes;


}
